package com.jfplugin.je;

import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.bind.tuple.TupleInput;
import com.sleepycat.bind.tuple.TupleOutput;

/**
 * Model数据绑定
 * @author farmer
 *
 */
public abstract class ObjectTupleBinding extends TupleBinding<Object>{

	private Object object = null;
	
	/**
	 * 
	 * @param model
	 */
	public ObjectTupleBinding(Object object) {
		this.object = object;
	}
	
	@Override
	public abstract Object entryToObject(TupleInput input);

	@Override
	public abstract void objectToEntry(Object object, TupleOutput output);


	public Object getObject() {
		return object;
	}


	public void setObject(Object object) {
		this.object = object;
	}



}
